﻿#region Imports
using System.Collections.Generic;
using System.Linq;
#endregion

namespace IntelliSearch.Utilities
{
    public class CommonUtilities
    {
        public static string CreateInitialsFromName(string separator, params string[] value)
        {
            List<char> temp = new List<char>();
            value.ToList().ForEach(nm => temp.AddRange(nm.Split(' ').Select(z => z.ToCharArray().First())));

            return temp.ToCharString(separator);
        }
    }
}
